package com.nyist;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 1.
 *
 * @author yangxiaogen
 * @date 2023/3/17 15:55
 */
// @EnableDiscoveryClient
@SpringBootApplication
public class WebsocketNyistApplication implements CommandLineRunner {

    @Value("${server.port}")
    private String port;

    private static final Logger logger = LoggerFactory.getLogger(WebsocketNyistApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(WebsocketNyistApplication.class, args);
    }

    @Override
    public void run(String... args) {
        logger.info("========websocket 端口为: " + port + ", 模块启动完成!========");
    }

}
